package com.xqh.javabasic.arrayelement_count_of_big_than;
public class ArrayElement_CountOfBig_Than{
	public static int  arrayElement_CountOfBig_Than(int [] a , int n){

			int x =0;
			int Cnt =0;
		
		while(x < a.length){
			
			if(a [x] > n){
				
			
				Cnt = Cnt + 1;
				
			//System.out.println(Cnt);	
			}
				x++;
		}
			
		return Cnt;	
	
	}


	public static void main (String [] ars){
	
 			int [] aa ={20,5,7,-9,12,29,43,35};		
		
			int Cnt = arrayElement_CountOfBig_Than(aa,10);

	}


}